/* 认证页面通用样式 */
.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: var(--background-primary);
  padding: 20px;
}

.auth-form-wrapper {
  background-color: var(--background-secondary);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 450px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.auth-form-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.auth-form-wrapper h2 {
  color: var(--text-primary);
  margin-bottom: 30px;
  text-align: center;
  font-size: 24px;
  font-weight: 600;
}

.success-message {
  background-color: rgba(0, 200, 83, 0.1);
  color: #00c853;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: center;
  border: 1px solid rgba(0, 200, 83, 0.3);
  animation: fadeIn 0.3s ease;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

.form-group input {
  background-color: var(--background-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--text-primary);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(136, 99, 255, 0.1);
}

.form-group input.error {
  border-color: #ff4757;
}

.form-group input.error:focus {
  box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1);
}

.error-message {
  color: #ff4757;
  font-size: 12px;
  font-weight: 500;
  margin-top: 4px;
}

.submit-error {
  background-color: rgba(255, 71, 87, 0.1);
  padding: 10px 14px;
  border-radius: 6px;
  text-align: center;
  font-size: 14px;
  border: 1px solid rgba(255, 71, 87, 0.3);
}

.btn-auth-submit {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-auth-submit:hover:not(:disabled) {
  background-color: var(--primary-color-dark);
  transform: translateY(-1px);
}

.btn-auth-submit:active:not(:disabled) {
  transform: translateY(0);
}

.btn-auth-submit:disabled {
  background-color: var(--disabled-color);
  cursor: not-allowed;
  opacity: 0.7;
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.auth-footer p {
  margin-bottom: 10px;
}

.auth-footer a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.auth-footer a:hover {
  color: var(--primary-color-dark);
  text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .auth-form-wrapper {
    padding: 30px 24px;
    margin: 20px 0;
  }
  
  .auth-form-wrapper h2 {
    font-size: 20px;
    margin-bottom: 24px;
  }
  
  .form-group input {
    padding: 10px 14px;
    font-size: 15px;
  }
  
  .btn-auth-submit {
    padding: 12px 18px;
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .auth-container {
    padding: 15px;
  }
  
  .auth-form-wrapper {
    padding: 24px 20px;
  }
}